/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fe.bmsearch.gui.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import fe.filter.IndexableFilter;

/**
 *
 * @author andreas
 */
public class FilterSearch extends Composite {
    
    private static FilterSearchUiBinder uiBinder = GWT.create(FilterSearchUiBinder.class);
    
    interface FilterSearchUiBinder extends UiBinder<Widget, FilterSearch> {
    }
    
    @UiField
    ListBox filterBox;
    @UiField
    FlowPanel autoFilterFormPanel;
    
    public FilterSearch() {
        initWidget(uiBinder.createAndBindUi(this));
        populateFilterForm();
        
    }
    
    private void setFilter(IndexableFilter filter)
    {
        
    }
    
    private void populateFilterForm()
    {
        autoFilterFormPanel.clear();
        VerticalPanel panel=new VerticalPanel();
        panel.add(new TextBox());
        autoFilterFormPanel.add(panel);
    }
}